lockd: fix the endianness bug