[RigoDaemon] use context manager with ReadersWritersSemaphore