[Common][Package] Avoid recalling app_info_create() for consecutive calls
app_info_create occasionally when the device is freshly reboot takes
much time to gather data (over 1 second), which causes a serious delay
when the function is called several times in the row without caching the
result.
This modification makes a single call of app_info_create() at first try
and then only return previously fetched value.
[Verification] Code compiles without errors.
TCT application, package, deprecated - passrate didn't change.
Change-Id: Ifc989d5eb0f7435f1a6451613d289d6d3851e979