refs #6362 attempt to fix mutexing issue on Unix

(not fully tested yet on Win but there are hopes. )