Qatari poet gets life sentence in secret trial