Chinese ex-security head jailed for life