Add unlock and isLocked methods