Allow creation of security object and treat it as local

#1969