Simplify wait.c

No need for all that cruft inside there

Change-Id: I4694a3f996cfba2915bf6dfb329dbbe8854f3e95
Reviewed-on: http://review.couchbase.org/36083
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>