Patched to avoid locking issues on 10.9, as per discussion on -devel:

http://thread.gmane.org/gmane.os.macosx.fink.devel/21875