[build] add LDFLAGS to thin_metadata_size