im by no means an expert on any of this but i would say that aquarium sealant silicon would work just fine, if it can make a water tight seal in a tank, it should be able to hold the track for the lid in place.