Ignore EINVAL errors while dropping unsupported capabilities.