This has been answered as in below and you wouldn't loose your config with the password recovery but you'd have to restart it few times
https://supportforums.cisco.com/document/79016/asa-password-recovery
***Please rate all the useful posts***
-Prabath