NodeJS job queue with scheduling and locking