Prince Khaled bin Talal was held for months after criticising a crackdown on corruption.