Adding synchronization blocks on all methods in order to prevent https://issuetracker.google.com/issues/262956896

Change-Id: Ia8560909c97bca83bc6d391fb9295e93539dfd29
1 file changed