You don't need -e.  Quote the lock variable.