JCBC-336: Refresh config while polling.

This changeset makes sure the actual config is always used while
polling in the loop. This makes sure a potentially stale config
is reloaded before getting used.

Change-Id: I5e636672b2cc910a3b3d2272672939ca7edbd4b3
Reviewed-on: http://review.couchbase.org/27761
Tested-by: Deepti Dawar <deepti.dawar@globallogic.com>
Reviewed-by: Deepti Dawar <deepti.dawar@globallogic.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>