I think this is what you are looking for - change lockSubmit() as such:
jQuery(':submit').lockSubmit(function(){ setTimeout(5e3);
And with options objects:
jQuery(':submit').lockSubmit({ submitText: "Please wait", onAddCSS: "submitButtons", onClickCSS: "submitButtonsClicked" },function(){ setTimeout(5e3); }));
Basically, javascript should wait until all arguments are resolved before the body starts. By setting a timeout during the argument, we delay the return.
source share