select: fixup timers
select: fixup timers

This commit adapts a timer model similar to what is used in IOCP

Previously, select would not order timers which would break some
other assumptions made in the code about timer ordering. This ensures
timeouts are ordered within the list.

Change-Id: Ia5fcc3237990806c18c5fb359c2b5a1af1ce78fc
Reviewed-on: http://review.couchbase.org/33108
Reviewed-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>
Tested-by: Mark Nunberg <e7d42768707bf23038325b0b68d4b577e5f6064a@haskalah.org>

uvenum/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,signmotion/libcouchbase,senthilkumaranb/libcouchbase,couchbase/libcouchbase,maxim-ky/libcouchbase,avsej/libcouchbase,kojiromike/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,mnunberg/libcouchbase,kojiromike/libcouchbase,kojiromike/libcouchbase,mody/libcouchbase,PureSwift/libcouchbase,PureSwift/libcouchbase,couchbase/libcouchbase,maxim-ky/libcouchbase,mody/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,maxim-ky/libcouchbase,uvenum/libcouchbase,mnunberg/libcouchbase,couchbase/libcouchbase,uvenum/libcouchbase,PureSwift/libcouchbase,PureSwift/libcouchbase,mnunberg/libcouchbase,maxim-ky/libcouchbase,uvenum/libcouchbase,mody/libcouchbase,couchbase/libcouchbase,senthilkumaranb/libcouchbase,signmotion/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,kojiromike/libcouchbase,senthilkumaranb/libcouchbase,mody/libcouchbase,couchbase/libcouchbase,senthilkumaranb/libcouchbase,mnunberg/libcouchbase,signmotion/libcouchbase