Are postdocs in your own institution frowned upon?
The extent to which it is frowned upon differs greatly by discipline and country. At least having been in different departments/universities is usually beneficial for young scholars. Departments differ quite a bit, so having been in different departments/universities/countries broadens the range of experiences. This is usually taken into account by hiring committees, but again, the extent to which that is the case differs substantially.