Can the HOA change the lock on your unit with a lock that cannot have copies of keys made?

Read your governing documents to determine who owns the door.

If the association owns the door -- and the lock -- then it is within the right of the association to implement a security strategy the protects the association.