mod_mam: wipe the cache when the last resource unbinds. (Fixes #47)