AndroidAsync : Synchronize isCancelled

The parent reference can be null between the check for not null and
and invocation on its method under extreme race conditions. Avoid
that by placing it inside a synchronized block.

Change-Id: Ib625847c23230cf2c42204325de54149026ff5c6
Merge "AndroidAsync : Synchronize isCancelled" into cm-11.0