ThreadProxy: Dispose is now thread-safe. This elimiates a possible NullReferenceException when the instance is disposed right before waiting for the next work package via the wait handle.