Prevent 'The resource tree is locked for modifications'

Fix for #202.
Merge pull request #203 from manandbytes/202-resource-tree-is-locked

Prevent 'The resource tree is locked for modifications'

Fixes a regression introduced by adding support for unit tests. This fixes: 

https://github.com/rgladwell/m2e-android/issues/202