Locked flag is used for Project Online / Server to prevent team members from entering additional time on a completed task. Though there are alternatives available like macros, customizing filters and views, it will not prevent users from not editing the tasks.