Enhance hold_lock_file_for_{update,append}() API