Fix #66048 (temp. directory is cached during multiple requests)

Move php_shutdown_temporary_directory() from php_module_shutdown()
to php_request_shutdown()

Please also merge this to the PHP 5.4 branch.