mkdb: fix CheckIsObject return value

It needs brackets around the return expression or it doesn't seem to evaluate
the "$root ne 'GEnum' and $root ne 'GFlags'" bit.
Spotted by Damon Chaplin

Fixes #706404