[XGLM] run sampling test on CPU to be deterministic
# What does this PR do?

This PR makes `test_xglm_sample` run on CPU to make it deterministic and pass.
Think you can rebase to master to solve the failing test