x86, bts: remove recursion from get_context