Backported unhook session module function from PHP 5.5 patch to PHP 5.4 patch in order to fix PHP 5.4 session tests