Merge bug25494 (again, after unmerging bug25517)
Obtain beam hash reliably
Merge bug 25517.
Prompt Mnesia to notice we've reconnected in case it doesn't notice itself.
Slightly more defensive, and update comment.
Junk bug 25523.