*: initialize state_mutex
Merge pull request #55 from herofj/auto-reconn

auto-reconn: fix bug that state_mutex is not initialized