Call php_module_shutdown() for php-fpm child processes

The PHP_MSHUTDOWN_FUNCTION should executed when a php-fpm child process exits. It currently only runs for the master process.

We run into a problem with a custom extension which needs to release resources when a process exits and this fix solves the problem.