remove useless synchronized blocks