Marking multithread solution as not safe