Cache return value of waitForService

If GetGsiService() is called during shutdown, it will block indefinitely
as init ignores any request to start a service. Cache the value instead.

Test: OTA on pixel
Bug: 308900853
Change-Id: Ib896449b8eb9456ce9e26889ba59e22d1b49208c
1 file changed