pub unsafe fn acquire(&self) -> RestoreState {
        unsafe { self.inner.acquire() }
    }
Acquires the lock.

# Safety

- Each release call must be paired with an acquire call.
- The returned token must be passed to the corresponding `release` call.
- The caller must ensure to release the locks in the reverse order they
were acquired.
esp-hal/src/sync.rs