jobserver2: support Queue.Empty and various cleanups + logging enhancements