Avoid using G_GNUC_CONST on _get_type()

As the g_type_ensure() documentation notes, it is incorrect to mark a
_get_type() method with G_GNUC_CONST, as it as a side effect the first
time it is called.