mm/hmm: add helpers to test if mm is still alive or not