bugfix: add exception handling code to vishnu session pid files save

Cf. previous commit, in some cases (rare ?), file locking code throws an exception.