Fix race in ReadWriteLock.(try)acquireWrite, and add a partial test case for that.
Ensure stressTest will fail the test if the implementation is broken