A simple countdown lock useful for unit testing asynchronous code in iOS.