The U.K. really restricts ibuprofen this way? In the U.S. I think these restrictions have been applied only to methamphetamine precursors (pseudoephedrine and maybe others), while opiates have been made prescription-only.
And in the US you have to present your ID for pseudoephedrine which is presumably getting linked to some database to prevent you from walking down the street to get two more boxes there.