test: hook up a valgrind run during the CI
And some related issues so we can actually do this.
Note that the endpoint test is skipped under valgrind, I couldn't quickly figure out what the related errors are here, but until that happens we shouldn't block everything else from running under valgrind.