Fix reading yaml lock file from stream