Rob Lowe thanked his loved ones for their support as he marks 31 years of sobriety 