sync: Fix lock test to actually test the inner lock value (#1197)
sync: Fix lock test to actually test the inner lock value (#1197)

* sync: Fix lock test to actually test the returned value

* Update lock test to use task.poll

tokio-rs/tokio,tokio-rs/tokio