Add a nontrivial read-write lock test