Thanks Gurcharan Singh ji for resurfacing this for discussion. Vijayasankar ji is right. I discussed this with Dr Jayakara Bhandary (Associate Professor of Botany, Government Science College
,Karwar) and here is his response..
Those spinous fruit-like structures are insect galls, commonly seen on stems of Hopea spp. If you disect them, you may find larvae inside.
In fact i almost took it for granted that these are some fruits. Its something totally new to me.