[1/2] Speed up booting on multicore devices.

1. Add multithreading support to Installer/installd.
2. Parallelize package scanning.
3. Parallelize boot dexopt.

Change-Id: Id42b2bf4a737f93f9ecd9b5819344adbb735f0fb

Conflicts:

	services/java/com/android/server/pm/PackageManagerService.java
Revert "[1/2] Speed up booting on multicore devices."

This reverts commit dded0c40b147e1fabb538156c024068ae89594ab.