fixed a registration/select loop race condition

Threads + Select loops = Lock Headaches