Pass opts to lock so that it uses the custom expiry time