MDL-17477 improve session purging when deleting users