If you have it on just one machine, then you sell it with the machine, no big deal. If you have it on multiple machines you keep it, and reinstall SL on the machine you're selling.
It is not tied to your iTunes account, you just need the account to download it.