Will calling "walletpassphrase" twice in a short amount of time increase the time the wallet stays unlocked?
After doing some experiments it appears that as calling the function results in an error, it is not processed, and thus the unlock time is not extended.