Fixed PHP-691: Memory leak during master failover

MongoCollection->update() & remove() do not have this problem