locks: convert posix locks to file_lock_context