If you accidentally lock your rear brake on a good traction surface, you should:

If you accidentally lock the rear tire on a good traction surface, leave it locked until you can come to a complete stop. Even with a locked rear wheel, you will be able to control a motorcycle on a surface with good traction as long as the motorcycle is upright and traveling in a straight line.
DMV Writen Test