Locks prepare class.