Fix submodule_is_config_only's return value

I think this was the original intent in https://github.com/libgit2/libgit2/commit/591e8295. Not sure how to properly exercise the code path in a test though.