backends/drm: add additional check for direct scanout
Commit 1: add env var to disable direct scanout for debugging
Commit 2: It can happen that the buffer gets imported correctly but we can't create a framebuffer from it for some reason. In that case, abort even trying to make an atomic commit with it. Not checking that is not the cause of the bug but it should be checked for either way and may work around it.