update: do not explicitly fclose lockfile before unlinking (refs #703)