Implement rwlock's rw_tryupgrade().
Add SPL_DEBUG initialisation checks