Shabana Mahmood is moving from dealing with a creaking-at-the-seams prison service as justice secretary to an even more pressured asylum system as home secretary.