Add rwlock wrapper macros which defined by existing mutex lock macros.
Rewrite BRIDGE_LOCK as the newer defined read/write lock macro.