Fix thread safety of servcie lifecycle