Remove cgraph workarounds for nested functions that have a custom static chain.