change synchronized to lockEntry.