[added to the 4.1 stable tree] locks: don't check for race with close when setting OFD lock