That sounds like the automatic folding/retracting not completing after a lock, rather than something you're doing wrong. Two things to check:
- The J7 manual says the smart key's range is about 20 m and that locking can be disturbed by interference or a weak key battery. Try replacing the key's coin cell and see whether it stops.
- In the vehicle settings, check the door-lock options (automatic lock, lock feedback) and any mirror auto-fold setting, so you know which behaviour is switched on.
If it still happens after that, report it to your dealer while the car is new. Note the dates and times so they can match it against the log. If you can, please say which model and trim you have so other owners can compare.