Move back atomic job counter, remove some debug
FFI: fix the job set: use reference counting in the set