Remove unused variable, fixes compile warning.
SocketAPI: Properly release precompiled statements. Use sqlite3_close

rather than its v2 equivalent. That should make it compile on older
linux platforms.