[added to the 4.1 stable tree] loop: fix concurrent lo_open/lo_release