implement prepared stmt recovery mechanism

fixes issue #150 (https://github.com/mattn/go-sqlite3/issues/150)