Use internal lock for ResourcesManager

- Create a new package private method for
  applyNewResourceDirs that takes the lock internally in
  the resources manager class
- Move all locking to use the internal lock object

Bug: 186411938
Test: on device and local build
Change-Id: Idb49c76ceca51ed656fd47b82fad0afca1b2740b
5 files changed