gh-148467: Move BufferedIOBase close to concrete implementations (#150838) This reverts commit b6c7beb722deedc5125c81747af5c1f1204e2619. Co-authored-by: Cody Maloney <cmaloney@theoreticalchaos.com>