[Avoid cfunction closure] GSL root finding problem with function passed as argument

OK. I figured it out by myself after studying this amazing blog: Passing Julia Callback Functions to C (julialang.org)

The trick is to make use of the parameter argument available for GSL functions, which avoids the need for using any cfunction closure.