thread safety and Timer object