SC asks HC, Maharashtra govt to evolve mechanism to ensure production of accused before trial courts