On a class of non-local optimization problems which embeds one-dimensional lubrication problems