It seems MariaDB has support for SKIP LOCKED but it doesn\'t work;
SELECT * FROM table WHERE col1 IS NULL ORDER BY id LIMIT 1 FOR UPDATE SKIP LOCKED
t