PHP-1048: Fix segfault during shutdown killing cursors after failover

https://jira.mongodb.org/browse/PHP-1048