Alloc struct kpatch_func_obj * array firstly in patch_init

Signed-off-by: Jincheng Miao <jincheng.miao@gmail.com>