Added functional test for rw trylocks, fixed processing rw trylocks