removed obsolete lock code from ViewThread