Lock handling fix in MarathonHealthCheckManager.