[PATCH OLK-5.10 V3 16/45] x86/fault: Add a helper function to sanitize error code