Try mutex.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>