Which operations create a lock and when should I worry?

Also this can be interesting, especially the non-blocking prune section.