Why it is necessary to add synchronized to method4, but not to method5?