src: replace ASSERT with CHECK
Builds always have asserts enabled so there is no point distinguishing between debug-only checks and run-time checks. Replace calls to ASSERT and friends with their CHECK counterparts.
Fixes: https://github.com/nodejs/node/issues/14461 CI: https://ci.nodejs.org/job/node-test-pull-request/9343/