I equipped the lockpick like a weapon and pressed the "F" key so the lockpick was activated, but when I clicked the right mouse button, nothing happened.
I'll state the obvious by saying that clicking the mouse button when a weapon is equiped works fine.