Fix unconfirmed balance bug due to orphans/conflicts

Fix filters outputs not in the memory pool when calculating a balance.

TODO: I need to test the performance on staging before merging but based on some manual queries it looks like it the impact should be negligible.