client: Make g_lock_lock() wait till lock is obtained
treecf5fb15c137ca8181b0a1567b3cfcb4caef0de62
drwxr-xr-x - ctdb