China jails former security chief for life after secret trial