The top floor is a common area, and any installation requires the consent of all unit owners (for units on the same side, at least two units must agree). Furthermore, the owner of the top-floor unit must not object to the installation.
Regarding the situation you mentioned about locking up areas, you should contact the property management and homeowners' association to address the issue of unauthorized locking of common areas. You can also report the safety hazard posed by locking the rooftop to the fire department.