Releases all resources held by the current xtd::threading::wait_handle.
Reimplemented in xtd::threading::event_wait_handle, xtd::threading::mutex, and xtd::threading::semaphore.