FFI: implement atomic jobs counter
tests: Add set of autotests