Tensor-network Markov-chain Monte Carlo: Efficient sampling of three-dimensional spin glasses