master: Add RAII for file descriptor in fs_loadall()

Change-Id: I87443c70f46b0d1d9b6c53eaa79046cbc4ddb791