build: conditionally compile bundled sqlite
Only compile the bundled sqlite in deps/sqlite if Node.js was not configured with --shared-sqlite.
node.gypi is already correctly adding the sqlite dependency if node_shared_sqlite=="false" so the unconditional entries in node.gyp are not necessary.
It looks like there are other dependencies that would need a similar change, but I'm not including those here because the sqlite dependency is much easier to check (deleting the deps/sqlite directory and linking against (with --shared-sqlite) libsqlite3-dev on Ubuntu or sqlite-devel on Fedora).
Review requested:
- [ ] @nodejs/gyp
CI: https://ci.nodejs.org/job/node-test-pull-request/63144/
Landed in e92446536ed4e268c9eef6ae6f911e384c98eecf