make cancel_xxx_work_sync() return a boolean