fix unable create perf event when run samples/schedule/schedtimes.kp

clear the idmap nr in idmap_free.

Signed-off-by: Jovi Zhangwei <jovi.zhangwei@gmail.com>