Gravity: Add file appending and locking functionality to FAO.