fix EAPI 5 check for use flag existence with inverted flags

The '!' prefix wasn't being stripped so the test was failing for
inverted flags. This copies portage's method of using a preset return
status and inverting it when the flag isn't found.