Fix potential memory scribbling issue in Render::UniformBuffer