The hidden tax trap catching long-term UK residents off-guard