Locked Capital in Defi Staking

In a Staking protocol where the capital is locked permanently can this be put against any income as a loss/expense - particularly in the UK?