overhaul __synccall and fix AS-safety and other issues in set*id