This comment mentions that pg_buffercache locks all buffer partitionssimultaneously, but it hasn't done so since v10 (see commit 6e654546fb).
-- nathan