layers: Refactor command buffer look-up
layers: Refactor command buffer look-up

Increase use of getCBNode() helper function.

KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools