Exact restoration of Galilei invariance in density functional calculations with quantum Monte Carlo