Simplified boro_lock().