Allegro: move thread functions after locking functions
Allegro: move thread functions after locking functions

sionescu/bordeaux-threads,sionescu/bordeaux-threads,ober/bordeaux-threads,ober/bordeaux-threads,mcna/bordeaux-threads,mcna/bordeaux-threads