Move copy_unix_token() from locking/locking.c to lib/util.c.