Added functionality for locked keyword and some small fixes for
immutable and readonly keywords.

You cannot override a locked method or extend a locked class.