Fix wrong arguments to get_lock.