Fix from Sara Hamouda for a hang in the MPI transport at shutdown time, caused by attempting to lock the global state when it is already held.
Authored by: bherta 2015-08-17
Parent: [r29727]
Child: [r29729]