TODO:
 - convert ASM locking code back to C, so maybe we can port this to other
   platforms than i386
 - man page
