Fix locking buffer when there is already an async process buffer

2 jobs for master in 32 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
passed #4226
test:emacs:25.3

00:00:31

passed #4227
test:emacs:26

00:00:31