kernel/resource.c: fix stack overflow in __reserve_region_with_split() from https://github.com/faux123/tuna/commit/4d973b29535f5e699da399786b41d2db25bb4b2d