selecting a random slave before trying to acquire locks