Implement progress to NanAsyncWorker (WIP)

Additionally corrected some minor lint issues.
You can just define+assign inside the critical section, it doesn't matter for the generated code.