make csv.pm actually flock by default and fix the unit tests to release the lock so it doesn't wedge