pub unsafe fn unlock(&self) {
            debug_assert!(self.is_owned_by_current_thread());
            self.owner.store(UNUSED_THREAD_ID_VALUE, Ordering::Release);
        }
# Safety:

This function must only be called if the lock was acquired by the
current thread.
esp-hal/src/sync.rs