Open lockfile for reading properly and close it