sheep: unlock before exit

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
tests: ensure that port is available

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>