Sure you can lock a single row:
BEGIN;
SELECT .... FOR UPDATE ... ;
-- app messes with filesystem...
-- may or may not actually update the row
COMMIT;
Won't this do what you need?
Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com