RDS: fix race condition when sending a message on unbound socket