Check for null pointers in HasMLock/SetMLock/RemoveMLock, cs_register can pass it some sometimes/possibly other places
Properly cleanup after entrymsglists and ajoinlists when destructed
Merge branch '1.9' of github.com:anope/anope into 1.9