[HFX-956] CA-111637: Fix data races in HA when slaves return in the pool