[ticket/12790] Use \phpbb\db\driver\driver_interface in prune_shadow_topics

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