Add public #locked? method

Add the counterpart of `locked?`