[PATCH 4.9 224/251] md: fix a crash in mempool_free