fix blocking fd problem; fix unlock problem; other minor fixes
fix blocking fd problem; fix unlock problem; other minor fixes

pecharmin/bind9,each/bind9-collab,pecharmin/bind9,each/bind9-collab,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,each/bind9-collab,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,each/bind9-collab