lock service not working

Device id for the most part should be avoided and not used. See this post for an explanation.