Revert "adopting lock-less algorithm."
Revert "adopting lock-less algorithm."

This reverts commit 94a9fb12293fccaa51c514e306bbc8c0720ae8d0.
This patch does not contribute for logging speed.
Let's go back to the safer one.

kazu-yamamoto/mighttpd2,mietek/mighttpd2