fix bug in call tree management
remove the result parameter from c_function type

this variable is already easily accessible from the worker so just get
it from there instead