x86, bts: add fork and exit handling