memif: contention between memif_disconnect and memif RX/TX threads