Csync: Plug code for csync_file_locked_or_open