[test][env] Updated Makefiles.
[cxxtags] Inhibit registering unrefarenced value.
[cxxtags_query] Quit searching all databases if the target item is in local scope.