[PATCH for-stable-4.14 12/48] arm64: capabilities: Move errata processing code