binder: Add retry to package manager service when the query failed.

Bug: 150245356
Test: Run adb shell stop, adb shell start and then run the
maintenance code to re-query the package versions.

Change-Id: I0dfc495a2203942acab2b320e69a0ee2e0dca177
3 files changed