Fix another deadlock-when-many-people-upload bug, like the one we fixed in r14
[pr0n] / sql /
drwxr-xr-x   ..
-rw-r--r-- 3338 pr0n.sql
-rw-r--r-- 2931 upgrade-v2.40.sql
-rw-r--r-- 2464 upgrade-v2.50.sql