If your rear wheel locks while you are trying to stop quickly, it is usually best to:

If you accidentally lock your rear brake when stopping on a good traction surface, keep it locked until you have completely stopped.

Wait, before you go

Ace Your Pennsylvania Motorcycle Written Test with our Guaranteed Cheat Sheet