common: readline: fix memory leak of plain text secret
After a user entered a secret it would get stored in the readline history data structure (in plain text) and eventually get leaked.
This set of commits instructs readline to not store any secret in its history, zeroes-out memory used to store plain-text secrets and fixes another not related memory leak.