Remove unnecessary synchronized code blocks [ci skip]