bug was fixed, exception is no longer necessary
allow "lock" as name of enum value
updated to MediaWiki 1.21wmf9