If your rear wheel locks up while you are stopping on a surface with good traction, you should:

If you accidentally lock the rear wheel while stopping on a surface with good traction, you can keep it locked until you have completely stopped. Even with a locked rear wheel, you can control your motorcycle if it is upright and traveling in a straight line.
DMV Writen Test