You can disable the auto locking by pressing and holding the lock button on the dash until the overhead indicator goes out.
As the previous respondent said, the automatic locking should only happen once you are doing about 5MPH, but its not unheard of for the doors to lock whith the keys in the ignition. It happened to my car once while it was being serviced at the Renault dealer...on the lift with the engine running!!