Prevent 'The resource tree is locked for modifications'

Fix for #202.