A Task-Efficient Reinforcement Learning Task-Motion Planner for Safe Human-Robot Cooperation