GetDown at Kalyan & take CST bound Local & Alight at Thane & take Local to Ghansoli.
Or
Get Down at Dadar & Take TNA/KYN Bound local for Thane & take Local to Ghansoli.
As, First local from Thane (Thane to Panvel) to Ghansoli is at 5.15 a.m.
And...
more... Hussain Sagar , normally Skipping Thane at around 4.15 so even if your train halt at thane you have to wait for 1 hour for Ghansoli train, so better you alight at Kalyan or Dadar & take local for Thane.