Real-Time Spatiotemporal Tubes for Dynamic Unsafe Sets