fix blocking function call spec in ffi

Should be a better test for #2299