fix deadlock when appending logs to db fails
fix deadlock when appending logs to db fails

pivotal-devin-fallak/atc,simonjjones/atc,savaki/atc,simonjjones/atc,zachgersh/atc,utako/atc,utako/atc,zachgersh/atc,zachgersh/atc,zachgersh/atc,simonjjones/atc,utako/atc,savaki/atc,pivotal-devin-fallak/atc,savaki/atc,pivotal-devin-fallak/atc