oprofile: fix crash when accessing freed task structs