[client] More graceful locked file handling.