Locking the track

I tried to find a way to lock the track, but I couldn’t find it. Is there an api to lock the track? If not, is there another way to stop the user from editing the timeline? And is there a possibility that track locking will be added?