A Best Fit Heuristic for the Lock Scheduling Problem