This allows it to be used with `Base.Lockable` on 1.11+. It needs to implement `Base.trylock` to satisfy the interface.