An alcoholic who locked his partner on a high-rise balcony to look at her phone, before she fell to her death, will not be jailed, a judge has said.