No this isn't possible. If you would have the users password you could theoretically log him/her in using a Java action and then perform what you want to do, but that is probably a bad way to approach things and it would log the user out at his/her location anyway.
By the way, even if you could prevent locking errors somehow, isn't locking the point of having the locking module? The locking would prevent objects from being changed by 2 actions at the same time and this is what you want when using locking right?
I don't know if it works, but you can try
ISession iSession = Core.initializeSession(...); to get an ISession and then
IContext iContext = iSession.createContext(); to get an IContext to be used in