Synchronize on mLock instead of mPackages.

Fixes: 141844594
Test: presubmit
Change-Id: Id3ad9ab3ec6f35c123f532d9dcf06899e139cf69
1 file changed