sqlite 3.8.7.4

release log (from https://www.sqlite.org/releaselog/3_8_7_4.html):
- Bug fix: Add in a mutex that was omitted from the previous release.

Closes #34890.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
sqlite: update 3.8.7.4 bottle.
Added dependency on libevent to build non-blocking library
thrift: update 0.9.2 bottle.