The static potential in the Gribov-Zwanziger Lagrangian