Don't give out non-const member pointers from a const function. Fixes a new thread-safety checker warning.