aligning code in module/owlib to module/ownet/c

changes in ow_rwlock.c and rwlock.h