PHP-861: Added the MongoCursor::maxTimeMS() method.
Moved Hannes' duplicate key checking to mongo_cursor_throw() to merge with the timeouts.