Improve BNetworkServer locking; fix BSmtpSender