st/mesa: check for incomplete texture in st_finalize_texture()