On second thought, this probably should be enabled using a config fragment, since its not gonna link in another library it may not be common case to justify for a default config.
That's true, I've enabled CONFIG_FEATURE_MOUNT_NFS mostly to show how to reproduce the issue. If there isn't interest to enable this by default, I'm fine with keeping this locally (to enable it only with our defconfig changes which enable it).
I think keeping it as a nfsmount.cfg which then can be applied via a bbappend could be a good option. May be adding a PACKAGECONFIG to control the -I flag and libtirpc dependency would be nice too