Fix up protected apps filter.

Move filtering to correct place (when querying providers,
ResolveInfo.activityInfo is null), and port over commit
4dad4a4e84ec385a80ebfae91c4dcd03ec30c9d0 from cm-11.0.

Change-Id: I355642d3c1c45be39148d913ab03651aebb5a4e8
pm: Add persist property to enable lazy dexopt

 * Add "persist.sys.lazy.dexopt" property to enable lazy dexopt
   on userdebug builds.  As much as I enjoy these 20 minute
   dexopt sessions, I prefer instant gratification.

Change-Id: I568692f04d67c3c0a1a138fb724eda41e24b1235