Fix lock bug on special freebsd cluster.