Use other object as lock of synchronized section.