updated rwlock module.