Fix flakey unit test

The test sometime failed locally apparently due to concurrency with
shortcut loading logic.

Test: the test itself
Change-Id: I2bd3bc5df194814dfca021b2010d863a375deb7c
1 file changed