Removed deprecated methods.

They were deprecated since 2.1 and 2.2
Not using external locking, but syncing on the context itself.

Which is even more correct, as all mutating methods of the context
as synced also.