The internal implementation of isc_result API is being updated, before
the update each internal library had to register their error results
using a respective <lib>_result_register() call during runtime, these
operations required locking to manage an internal data structure.
In the same fashion, locking was required when calling
isc_result_totext and isc_result_toid functions.
To avoid locking, the table of error codes will now be statically
created during compile time, also the result API is now unified and
can be accessed through isc/result.h only header, with dns/result.h
being an exception, it should still be included separately as
dns_result_torcode() function depends on a type defined in the dns
library.