Almost half of the 45 deaths in custody in Northern Ireland since 2016 have either been confirmed as suicide or were potentially self-inflicted.