Fix race-conditions around work-queue work being thrown back to the primary thread
in fs.js binding.