st/va: add more errors checks in vlVaBufferSetNumElements and vlVaMapBuffer