Minor bug fix in metadata_read()

Minor correction of our syscall in metadata.c

NOTE: This code and the code from the previous commit DO NOT COMPILE