Green’s Dictionary of Slang

pan, the n.1

[abbr. St Pancras]

the workhouse, esp. the St Pancras workhouse.

[UK]Sl. Dict. 304: ‘Pan,’ St. Pancras [workhouse]. ‘Pan’ and ‘Lump’ are now terms applied to all workhouses by tramps and costers.
[UK]P.H. Emerson Signor Lippo 94: Next day all us kids were sent to the pan, and she got two months’ hard.