A Dublin city centre property beside one of the city’s most historic buildings has been sold to a private buyer.