Fix a race condition inside command_timed_out() when printing log info am: b77d7129b2 am: fd7231f3e6
am: 099fc1c9d3

Change-Id: I1b86659b70b2514e748c9710e7292b9bacb5183f