Unfortunately this situation is not covered by section 140 cgst act (transition provision), i dont know whether intentionally or by mistake. Credits will not be available.
Section 140 [5] only talks about availing credit of inputs and input services in transit because as per Section 140[1] there is no carry forward of credit pertaining to inputs and input services unless mentioned in the returns. However, Section 140[2] poses no such conditions for carry forward of credit pertaining to capital goods.
So in my view, input credit can be availed in case of capital goods in transit.