q = sess.query(User).populate_existing().with_for_update(nowait=True, of=User)
SELECT users.id AS users_id FROM users FOR UPDATE OF users NOWAIT