`sync()` for encrypted dbs work in rust, so I suspect the issue is in C bindings. since the key is not sent, the sync call just fails