Local transport barrier formation and relaxation in reverse-shear plasmas on the Tokamak Fusion Test Reactor