mesa: add missing error checks in _mesa_program_parameteri()