Reduce lock contention when starting process (1/N)

- Synchronize by itself instead of global lock.
- ArrayList is more efficient if the size is small.

Bug: 204870457
Test: CtsWindowManagerDeviceTestCases
Change-Id: Ieb167c8b2ecd783afba9b5e8218415653be5c239
4 files changed