[ticket/10521] Fix broken tests using set_cookie

PHPBB3-10521