A man has died and a woman has been taken to hospital in a serious but stable condition after a unit fire at St Marys, in Sydney's west.