p11tool: auto-login where required
Several PKCS#11 operations require login to work, and without it the operation typically fails with arbitrary error codes. On these operations (write/generate usually), provide a default mode where if --login is not given, login will be attempted on any failure.