Prevent commands from other shells on the same host from confusing me

When a different shell instance writes to the history file, the shell
was reloading the history file and thus an up-arrow ran a different
command than the one I can see above the current prompt.