fix error when using fcntl locking; prepare for release 0.02