Use pthread_cond_signal when returning a context to the shared pool