use flock to serialize select->accept (fix #15)
releng for 0.23