gui: Remove ApiTraceEvent::m_hasBinaryData.

Fold into ApiTraceEvent::m_binaryDataIndex.
gui: Remove dead ApiTraceEvent::stateParameters().
glstate: Use glGetFramebufferAttachmentParameteriv on core contexts.

To get depth/stencil bits for the default framebuffer, as
GL_DEPTH/GL_STENCIL has been deprecated.

Fixes "GL_INVALID_ENUM error generated. <pname> requires feature(s)
disabled in the current profile."
glretrace: Ignore CGLLockContext/CGLUnlockContext.