resetting old scheduling policy correctly in free() hook