backends/drm: Fix mode comparison
Some modes can have the exact frame timings but different flags. Currently, the mode comparison function doesn't take that into account which can result in the drm backend setting the current mode flag incorrectly.
cc @sitter