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