Rather than having Sema provide a default implementation of Error._code when needed, introduce a runtime function to extract the default code, so that we can provide a default implementation via a protocol extension in the standard library.