remove has_lock, unused