also, atomic move based file creation would preven...
# general
w
also, atomic move based file creation would prevent partial messages... but i don't know if the lock is on the inode or the path. if it's on the path, then you could rename the message file into and out of place.