perf lock: Make 'f' part of the common 'lock_options'