[ticket/11731] Replace ucp_pm_viewmessage.php session table queries

PHPBB3-11731