[Media Common] Fix mos_query_engines_count issue

1. Previous length is the size for allocating membar to get engine count, add correct flow to get engine count
5 files changed