Adjust magnetic auto-lock sensitivity
It's very unlikely that you can control the sensitivity. Most of these magnetic switches are simple reed switches: the magnet pulls two contacts together, closing the switch. The software simply gets an on/off signal, not a quantity it can filter.

It might be possible to add the delay solution you suggest in a custom-rom, but I don't know of any with this functionality.