Non-recessed pancake box for ceiling fan
There surface mount boxes that are fan rated.



You can use one of the back knockouts and the proper connector to bring your cable in from above.

Your plan to reinforce with wood above the mounting seems sound. You should not try to mount such a box with just plaster mounted fasteners. You may want to consider steel joist hangers for your crossbeam.


  Links images are illustrative only, not an endorsement of brands or sources