Add flag for the PackageMonitor

Add flag to control the feature, register receiver only if really
request to support package restart query in the PackageMonitor.

Bug: 300309050
Test: build pass
Change-Id: I042456e5f475f1d4b709ad38dbe977953ab2cdfe
1 file changed