Shardul Thakur scored 51 off 57 as Mumbai went from a precarious 47/7 to 120 all out against Jammu and Kashmir in a Ranji Trophy Group A match.