ibrcommon: Usage of RWMutex / RWLock simplyfied

If an RWMutex is locked using a MutexLock, a read-only lock is acquired. If
the RWLock is used the read-write lock is set.
daemon: Use new RWMutex pattern