Fixed a bug where enqueuing another job during the OnComplete callback would raise an error due to mutex locking.