CountDownLatch trySetCount bug fix
rebase for fix
update for tests
Merge pull request #3245 from bilalyasar/countdownlatch

countdownlatch trysetcount bug fix + unit test