Coverity issue 1187615. Fixed a problem with a double close
in lock_out_ha.