Synchronize data access to avoid race

Test: DeviceTest
Fixes: 240467082
Change-Id: I679537e471ff54ef5714e63c179284392a70f082
1 file changed