[ticket/12174] Update topic_attachment flag when a post is soft-deleted

https://tracker.phpbb.com/browse/PHPBB3-12174

PHPBB3-12174