Remove unnecessary synchronized blocks