On the relation between local and geometric Lagrangians for higher spins