Fix racecondition in status creation