It seems that in the vcpkg capnproto package, the capnp code generator can't be found in <capnp_PREFIX>/bin/capnp but is in another path that needs to be read from the cmake configuration, so this change adds cmake code to handle that.
Unfortunately the previous code using <capnp_PREFIX>/bin can't be removed because the llbcapnp-dev 1.0.1 package in Ubuntu Noble is buggy and specifies the wrong executable path in its cmake information. (If this problem is fixed, the old capnp_PREFIX code could be dropped.)
This change is needed to get MSVC builds working in https://github.com/bitcoin/bitcoin/pull/32387