Added mutex locking prevent errors if more than one copy of
sp_sync_cr_with_filesystem runs at once for a single package instance,
plus related changes. Changed sp_sync_cr_with_filesystem proc to a
wrapper proc which now calls sp_sync_cr_with_filesystem_internal, in
order to properly free the mutex upon any unexpected error.