ibrcommon: Improved error checking on RWMutex locking.
Merge pull request #46 from SebastianSchildt/fixmutex

ibrcommon: Improved error checking on RWMutex locking.