Recession fears and a surge of tech industry layoffs have drawn renewed attention to severance packages.