PHP-613: Sort out timeout mess

Note that this PR expects https://github.com/mongodb/mongo-php-driver/pull/287 to be reviewed and merged first.

Since this PR depends on it, it is also included here.