Removed unused (hidden!) ObjectCache.lock() method

This method didn't serve any purpose anymore, and it was hidden by the
lock property. So let's just remove it altogether.
Fixed access to undefined variable in Configuration.save
Fixed inconsistent indentation

We use spaces all over.