fix segment metadataquery

submit PrioritizedCallable to executorService
add SegmentMetadataQueryBuilder
add sanity unit test for segmentmetadataquery