move setting $_SERVER['DOCUMENT_ROOT'] to set_wp_root() method

It was first defined in 390e7dbbabee7398527c3a1552e849f5c87053aa and
then sort of drifted away from where paths are handled.