DQM protobuf reads and writes now close the file descriptors properly.

Well, not properly, this is just a quick fix.
We should rewrite and avoid using ::open altogether.
Fix a minor compilation mistake introduced in the previous commit.
Merge pull request #6570 from dmitrijus/file_descriptor_hax

DQM protobuf reads and writes now close the file descriptors properly.