(core) fix 4-byte non-controllable UAF on avfeedframe (recordtarget) when explicitly terminating during TICK
(arcterm) build fixes
(encode) dropped useless sleep, atexit cleanup reorganization