parlib: Add a rwlock test