MySQL: Does SET influence FOR UPDATE?
Unless the MySQL lords know better than me, it's equivalent to the query:

UPDATE engine.storage
SET bytes_inuse = bytes_inuse + 40000
WHERE (size_bytes - bytes_inuse) &gt;= 40000;


I imagine in your real query you have a more restrictive WHERE clause etc.