2af5d05 make locking more reliable

Authored and Committed by akostadi 2 years ago
    make locking more reliable