core: const correctness

This commit chanages several functions in renderdoc/core to const functions.