MB-8244: Add dispatcher, worker thread stats

- Enables dispatcher stats
- Prints reader-writer thread stats
- Add condition to return immediately without
printing stats if engine in shutdown mode
- Changes based on previous comments included
- Adding a unittest: test_worker_stats
- Formated dispatcher stats (sample)

 iomanager_worker_0
    runtime: 6ms
    state:   running
    task:    Running a flusher loop

- Add stats' details in doc/stats.org

Change-Id: I034dc6ea04df0e7e018849e1ebe8c1f6a02d9246
Reviewed-on: http://review.couchbase.org/27121
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: abhinav dangeti <abhinav.dangeti@gmail.com>
MB-8578: Add stats uuid

Change-Id: I348f644e810711297700b5c94de075e3ee3d154d
Reviewed-on: http://review.couchbase.org/27356
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
MB-8600: Add all args to log message to prevent possible segfault

Change-Id: I4a60431fd775670ef1353e7cf36884e7f1436b4c
Reviewed-on: http://review.couchbase.org/27431
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Merge remote-tracking branch 'gerrit/2.1.1'

Change-Id: Ib3a623d970d4c686b8d5c66d845bdf880f810d25