This is preparation work before we may get rid of our private fd allocation system for in-kernel callers.