The coffee giant is reversing a policy that had allowed open access to its cafes, in a push to improve store environments.