Added locks around sync block in life check thread