error in munlock call