pthread and synccall cleanup, new __synccall_wait op