Thai junta to remain in power 'as long as needed'