MDL-47903 mod_forum: Add discussion subscription time

This helps us to only send notifications for messages the user should have
already seen.
MDL-47903 mod_forum: Correct test fails related to caching and time

This adds a reset of the discussion and forum cache when running the mail
and maildigest tests.

These test fails were highlighted by the addition of new tests which
add similar post ids.