only release locks automatically on demand