dumpstate: use O_APPEND for anr file. am: 989b812dcd am: b0f08f67fd
am: 67e3e53dd9

Change-Id: I446b797e3f8cb9d4299509fb34b84f5b25336300