Transitory O-rich chemistry in heavily obscured C-rich post-AGB stars