Convert ext/bzip2 to HNI

Adds error handling to the bzerr*() functions, allowing one of the current bad tests to pass.

Part of #1480.