Yeah because you are using the function all wrong.
LockMessenger is a function of the object MsgPlus.
LockMessenger as 1 parameter that accepts true or false.
true to lock WLM false to unlock it
js code:
function OnEvent_Initialize (bMessengerStart) {
MsgPlus.LockMessenger (true);
}
And yes a boolean is either true or false nothing else.