file-helpers: make parent dir creation thread safe
Mostly an issue during encoding, where each encoder runs in a separate thread and calling rb_uri_create_parent_dirs ()
, which races between check_file_is_directory ()
and g_file_make_directory_with_parents ()
calls.
Closes: #1743 (closed)