handle race condition between flock + stat [gh#1]