https://dunderhay.github.io/posts/physec/improving-general-lock-security/