[ticket/12260] Add core events to delete_posts() function.

Events for extensions to perform additional actions on posts deletion.

PHPBB3-12260