making a conscious effort to engrave in my mind that i am in fact locking the door helps  i also read from someone here that recording the act of locking the door helped them but maybe thats just one compulsion changed to another