push and pop (and lock it)