Remove all locks held by a given pid (cleanup on process exit).
Set a lock (non-blocking). For F_UNLCK, removes matching locks. Returns true on success, false if conflicting lock exists (EAGAIN).
Set a lock, blocking until it can be acquired (F_SETLKW). Uses Atomics.wait on wake_counter to sleep between retries.
StaticcreateStaticfromStatichashFNV-1a hash of a string, returning a signed i32.
Check if a lock would be blocked. Returns the blocking lock info, or null. (Used for F_GETLK and for F_SETLK conflict check.)