Resolving race condition while writing recent taskids
am: fd0bd4f39d

Change-Id: I2bfd5c68c6a5a9989a9dab6038313a5d5849b765