afs: Introduce flush_and_free_pb().