made SDL_MUSTLOCK() const and pure

This allows SDL_MUSTLOCK to be used in contracts and other scenarios where const is needed