How to work out the loopholes
Lot of good points so far about loopholes, but let's assume your society has figured out how to work out the loopholes. The best way to eliminate the loop holes is to seize all of the family's wealth, not just the person who died. The problem of course is then that if you are a business owner and your father is a janitor, then when he dies, the government can take not just the \$100 he has left in his checking account, but they could also seize your entire multi-million dollar business... this is very bad for the economy, and will likely lead you down a fast path to 3rd world status for your nation and/or into an extreme form of socialism.
So, in order to mitigate the harmful effects, you'd need to have the Bureau of Social Equity send an accountant out to assess how much of a successor's wealth and assets should be seized from children based on how successful the parent was, and how much they did in thier life to pass on wealth and opportunities to thier children. So, if a parent was wealthy, then the children stand to lose a lot more when they die than if the parents were poor.
But does it encourage corruption?
Everything about this system encourages horrible corruption at every level of government.
Let's start with the BSE accountants. If your billionaire father dies, and an accountant comes up with unilateral control over how much of his wealth you get to keep, you have a perfect recipe for both bribery and extortion. The children could bribe the accountant into ignoring certain assets, or claiming that certain assets were "self-earned". Likewise, the accountant could extort money from the children by threatening to seize self-earned assets if they don't pay up.
Then there is control over the BSE itself. If you have wealth or influence, then inserting cronies in the BSE is the best way to make sure that you and your allies retain thier generational wealth while your political opponents lose as much as possible. Running for office? Have your nephew in the BSE reopen your opponent's inheritance file and "prove" that none of his assets are self-earned. Good luck staying in the race once you're suddenly homeless and unemployed.
At the higher levels of government, it would be in thier best interest to kill off any citizens who acquire too much wealth and power. We saw similar issues in the medieval period. If a person was guilty of conspiracy, treason, heresy, or witchcraft, it was common and lawful for thier lord to execute them and seize thier assets and thier family's assets preventing their family line from inheriting the wealth. However, this lead to huge problems whenever a subject became more wealthy or powerful than his lord, or when a master simply got greedy. Kings would often trump up false allegations against powerful lords and organizations and execute them specifically to seize thier assists. For a more modern context: Remember the time Mark Zuckerberg got called before Congress for making a social media platform that can be used by foreign powers to influence elections? If voters know that a guilty verdict would kill off MZ and redistribute Facebook's wealth or could be used to cut taxes next year, then NOT finding him guilty and putting him to death would be political suicide.