A distributed proximal splitting method with linesearch for problems with locally Lipschitz gradients