Redo lockfile code to avoid issues with tcl's "rename".
Redo lockfile code to avoid issues with tcl's "rename".

flightaware/speedtables,flightaware/speedtables,flightaware/speedtables,flightaware/speedtables