MAINT: make calculating of x_opt in stats.norminvgauss work without state.