Added cgo flags to unqlite enabling threadsafe build.

On my Arch Linux system it took adding a couple of flags to the cgo setup in unqlite to get it to build threadsafe.