Added seek to beginning of file when opening a local file.  This is done 
automatically on Linux but not on MacOSX, leading to bug #120.
Merge pull request #128 from drusk/mac_crash_local_locking

Closes #120.