Surely your heroes should always be available in a war? In the same way that your defenses are available even when being upgraded. If you are upgrading a hero it should still be available for your war attack. This will allow greater participation in wars because there won't be a need to exclude yourself when your heroes are being upgraded.

