FreeBSD requires sys/rwlock.h to get the rw_assert and RA_WLOCKED definitions.
Merge pull request #1 from kientzle/5642803d5503b92468ad260cef1c03c6108fa921

Fix a compile problem when building with CLang