Add length of the key to the new API.

Forces users of libsqlfs to be aware of their key lengths and
prevents issues with non-null terminated strings.