JNI broken for sqlite 3.4.4-2

The JDBC persistence service is broke for sqlite in 3.4.4-2 on aarch64 / bullseye, aka raspberry pi.

java.lang.UnsatisfiedLinkError: /var/lib/openhab/tmp/sqlite- /var/lib/openhab/tmp/sqlite- **wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)**

Am I wrong? Has anyone that is using JDBC with sqlite found a way around it? Is it working in 4.0?