Fix a possible (though unlikely) deadlock condition spotted by jhMikeS. It would...