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.
DMV Writen Test