solve_locks