DERBY-6162: Simplify privileged actions in NetworkServerControlApiTest

Remove call to deprecated method java.io.File.toURL().