Add set_csync_file_locked_or_open_ext

Without using function, there were problems with DLL import/export