I'm lost.
the thing i wanted to have more to this function was to disable the ability to close mirc, and when it's minized to tray you cant without a password
When I lock mirc (tray) I can't close mirc without the password, I'm not sure about what you mean.
Try to be more precise, what does your alias /lock ?