All are ok but the one with "lack" it can't be followed by an infinitive. You need a noun of some sort, an object or a gerund.
"What is only left" is awkward with the double use of "is".
"The only thing remaining to be done is" is the best choice.
Or reposition the only in your first sentence: "What remains to be done is only to"