retrychk: declare local variable as proper enum type

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