timer: clean up hook allocator API