Fix session handlers in zts

Also use ZEND_HASH_FOREACH API.
Merge branch 'master' of git://github.com/php/php-src