When capital punishment was first abolished for civil offences it remained an option in the various service acts. If my memory is correct there were still 4 offences which ranked the ultimate penalty including pokeing H.M. but no mention of H.R.H.
Defintly treason if U.K. citizens, if still still foriegn nationals deny reentry.