Senior judge slams 'disgraceful' lack of secure accommodatio