[ticket/12692] Add a console command to manage the thumbnails

https://tracker.phpbb.com/browse/PHPBB3-12692

PHPBB3-12692
FYI: You can use the "a bit shorter" `$nb_missing_thumbnails = (int) $this->db->sql_fetchfield($result);`