Depress the button on the seat belt buckle. If the belt does not fully retract, pull it out and check for kinks or twists. Then make sure it remains untwisted as it retracts.
NOTE
If a belt does not fully retract, inspect it for kinks and twists. If it is still not retracting properly, have it inspected at an Authorized Mazda Dealer.
Mazda 6 Owners Manual: Locking, Unlocking the Doors
NOTE
The system may not operate if you are too close to the windows or door
handles.
If the key is left in the following areas and you leave the vehicle,
the doors may be locked depending on the radio wave conditions even if the key
is left in the vehicle.
Around the dashboard
...
Mazda 6 Owners Manual: Scheduled Maintenance (U.S.A., Canada, and Puerto Rico)
Follow Schedule 1 if the vehicle is operated mainly where none of the following
conditions (severe driving conditions) apply.
Repeated short-distance driving
Driving in dusty conditions
Driving with extended use of brakes
Driving in areas where salt or other corrosive materials are used
...