lock/unlock method for refreshing feeds working

The new version of the method seems to be working flawlessly. Will need
aditional test.