Open file description locks F_OFD_SETLKW operation.
Returns true if the lock was obtained, false if a signal was received while waiting for the lock.
If retry_on_signal is true, acquiring the lock is automatically retried in case of signals, and the function always returns true.