Retry pulling from the queue when DatabaseOperationalError is raised
The Queue.pull method can raise such exception even with an autocommit transaction because the update query can be in conflict with another same update query. This is because we use repeatable isolation level.
Closes #11937 (closed)