master: Add constructor and destructor for ChunksMetadata

This makes it possible to free memory occupied by the metadata of chunks
when metadata server is running to be able to load other metadata file.

Change-Id: I987c208e187536bd4ecb44892deb83bc430accf0