The implementation of fs::relative resolves symlinks which is not intended
in ListWalletDir. The replacement does what is required, and listwalletdir RPC
tests are fixed accordingly.
Also, fs::recursive_directory_iterator iteration is fixed to build with boost 1.47.
Based on #14559