WC lock idea and patch with stub functions