Fixed a race-condition in health check.

This would have caused timeouts on healthcheck calls when
 async strategy was used.