[PATCH] md: Improve locking around error handling