fix problem on Ultrix -- fcntl locking doesn't auto-release locks