threading: Support rwlock try_write_lock() on Windows