Thread-safe variation of get_sent_folder.
Use this function when accessing this from multiple threads.
The returned string should be freed with g_free when no longer needed.
an SourceMailSubmission
a newly-allocated copy of sent_folder