Get rid of buggy lock implementation

Let the users who actually need locks do it.