Move to grant powerful army chief legal immunity for life comes while former PM and fierce critic Imran Khan is being denied family and legal visits