Move locking to caller.
Docker-DCO-1.1-Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp)
Merge pull request #137 from mrunalp/dev/moveuplockthread

Lock the thread first thing in init.